package com.cheejee.goodscenter.dao;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import com.cheejee.goodscenter.module.entity.Goods;

@Mapper
public interface GoodsMapper {

	int deleteByPrimaryKey(Long id);

//	int insert(Goods record);

	int insertSelective(Goods record);

	Goods selectByPrimaryKey(Long id);

	int updateByPrimaryKeySelective(Goods record);

	int updateByPrimaryKeyWithBLOBs(Goods record);

//	int updateByPrimaryKey(Goods record);

	// ################ 以上为mybatis generator生成 #####################

	List<Goods> selectBySelective(
			@Param("brandId")Integer brandId, 
			@Param("categoryId")Integer categoryId, 
			@Param("goodsName")String goodsName, 
			@Param("isOn")Boolean isOn, 
			@Param("isDetelete")Boolean isDetelete);
	
	int deleteById(@Param("id")Long...id);
	
	List<Goods> selectByOrder(@Param("order")String order);
}